﻿<?php
    @session_start();
	if($this->type==34 || $this->type==77){
		$mode=1.00;
		$lastNo=$this->getGameLastNo($this->type);
		$kjHao=$this->getValue("select data from {$this->prename}data where type={$this->type} and number='{$lastNo['actionNo']}'");
		if($kjHao) $kjHao=explode(',', $kjHao);
		
		$actionNo=$this->getGameNo($this->type);
		$types=$this->getTypes();
		$kjdTime=$types[$this->type]['data_ftime'];
		$diffTime=strtotime($actionNo['actionTime'])-$this->time;
	}else{
		$lastNo=$this->getGameLastNo($this->type);
		$kjHao=$this->getValue("select data from {$this->prename}data where type={$this->type} and number='{$lastNo['actionNo']}'");
		if($kjHao){
			$kjHao=explode(',', $kjHao);

			if($this->type == 80){
				$temp = explode("|", $kjHao[5]);
				$kjHao = array_merge(array_slice($kjHao, 0, 5), $temp);
			}elseif($this->type == 81){
				$temp = explode("|", $kjHao[4]);
				$_kjHao = array_merge(array_slice($kjHao, 0, 4), $temp);
				$_kjHao[] = $kjHao[5];
				$kjHao = $_kjHao;
				unset($_kjHao);
			}
		}

		$actionNo=$this->getGameNo($this->type);
		$types=$this->getTypes();
		$kjdTime=$types[$this->type]['data_ftime'];
		$kjTimestamp = strtotime($actionNo['actionTime']);
		$diffTime = $kjTimestamp - $this->time - $kjdTime;
		$kjDiffTime = $kjTimestamp - $this->time;
	}
	
	$logcls_settings = array(
		1=>"icon_cq_ssc",	//重庆时时彩
		5=>"icon_hn_ffc",	//河内1分彩
		6=>"icon_gd_11x5",	//广东11选5
		7=>"icon_sd_11x5",	//山东11选5
		9=>"icon_fc_3d",	//福彩3D
		10=>"icon_tc_pl3",	//排列3
		12=>"icon_xj_ssc",	//新疆时时彩
		14=>"icon_hn_5fc",	//河内5分彩
		15=>"icon_sh_11x5",	//上海11选5
		16=>"icon_jx_11x5",	//江西11选5
		20=>"icon_bj_pk10",	//北京pk10
		26=>"icon_hn_2fc",	//河内2分彩
		34=>"icon_xglhc",	//六合彩
		35=>"icon_tj_ssc",	//天津时时彩
		60=>"icon_tj_ssc",	//天津时时彩
		61=>"icon_am_ssc",	//澳门时时彩
		62=>"icon_tw_ssc",	//台湾时时彩
		63=>"icon_am_ks",	//澳门快3
		64=>"icon_tw_ks",	//台湾快3
		65=>"icon_am_pk10",	//澳门PK10
		66=>"icon_tw_pk10",	//台湾PK10
		67=>"icon_am_11x5",	//澳门11选5
		68=>"icon_tw_11x5",	//台湾11选5
		79=>"icon_js_ks",	//江苏快3
		69=>"icon_am_3d",	//澳门3D
		70=>"icon_tw_3d",	//台湾3D
		71=>"icon_am_xync",	//澳门幸运农场
		72=>"icon_tw_xync",	//台湾幸运农场
		73=>"icon_amkl8",	//澳门快乐8
		74=>"icon_hgkl8",	//韩国快乐8
		75=>"icon_bxklc",	//巴西快乐彩
		76=>"icon_bx15",	//巴西1.5分彩
		77=>"icon_xglhc",	//六合彩
		78=>"icon_bjkl8",	//北京快乐8
		80=>"icon_ssq",		//双色球
		81=>"icon_dlt",		//大乐透
	);
?>  
<div class="lottery_head" id="kaijiang" type="<?=$this->type?>" ctype="<?=$types[$this->type]['type']?>">
	<div class="lottery_show left">
		<div class="lottery_con">
			<div class="lottery_type left">
				<div class="<?=isset($logcls_settings[$this->type]) == true ? $logcls_settings[$this->type] : "" ?>"></div>
			</div>
			<div class="lottery_timer left">
				<div class="lottery_issue left">
					<p>第 <span id="current_issue"><?=$actionNo['actionNo']?></span> 期</p>
					<p>投注剩余时间</p>
					<span class="soundBtn soundClickEvent" onclick="voiceKJ();"></span>
				</div>
				<div class="lottery_timeBox left">
				<div class="timeBox">
					<div class="time_line"></div>
					<div class="num_left">
						<div class="num num_t">
							<div id="s1s"></div>
						</div>
						<div class="num num_b">
							<div id="s1x"></div>
						</div>
					</div>
					<div class="num_right">
						<div class="num num_t">
							<div id="s2s"></div>
						</div>
						<div class="num num_b">
							<div id="s2x"></div>
						</div>
					</div>
				</div>
				<div class="dianBox"></div>
				<div class="timeBox">
					<div class="time_line"></div>
					<div class="num_left">
						<div class="num num_t">
							<div id="f1s"></div>
						</div>
						<div class="num num_b">
							<div id="f1x"></div>
						</div>
					</div>
					<div class="num_right">
						<div class="num num_t">
							<div id="f2s"></div>
						</div>
						<div class="num num_b">
							<div id="f2x"></div>
						</div>
					</div>
				</div>
				<div class="dianBox"></div>
				<div class="timeBox">
					<div class="time_line"></div>
					<div class="num_left">
						<div class="num num_t">
							<div id="m1s"></div>
						</div>
						<div class="num num_b">
							<div id="m1x"></div>
						</div>
					</div>
					<div class="num_right">
						<div class="num num_t">
							<div id="m2s"></div>
						</div>
						<div class="num num_b">
							<div id="m2x"></div>
							</div>
						</div>
					</div>
				</div>
			</div>

 <?php if($types[$this->type]['type']==3) { //3D?>
     <div class="lottery_num left">
				<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
				<div class="lottery_num_box">
					<ul id="num" style="width: 165px;">
					<li><span style="top: 0px;"><?=$kjHao[0]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[1]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[2]?></span></li>
					</ul>
				</div>
				<div class="louhao">
					<a class="wanfa" href="/zst/3d.php?typeid=<?= $this->type ?>" target="_blank">走势分析</a>
				</div>
			</div>
			</div>
	</div>

	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();" >开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
	
</div>
	   <?php }else if($types[$this->type]['type']==9) { //快3?>
				<div class="lottery_num left">
				<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
				<div class="lottery_num_box">
					<ul id="num" style="width: 165px;">
						<li><span style="top: 0px;"><?=$kjHao[0]?></span></li>
						<li><span style="top: 0px;"><?=$kjHao[1]?></span></li>
						<li><span style="top: 0px;"><?=$kjHao[2]?></span></li>
					</ul>
				</div>
				<div class="louhao">
					<a class="wanfa" href="/zst/k3.php?typeid=<?= $this->type ?>"  target="_blank">走势分析</a>
				</div>
			</div>
	  </div>
	  	</div>
	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();" >开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
	
</div>

<?php }else if($types[$this->type]['type']==11) { //六合彩?>
				<div class="lottery_num left">
				<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
				<div class="lottery_num_box">
					<ul id="num" class="lhc">
				<?php 
				$a = array('01','02','07','08','12','13','18','19','23','24','29','30','34','35','40','45','46');
				$b = array('03','04','09','10','14','15','20','25','26','31','36','37','41','42','47','48');
				$c = array('05','06','11','16','17','21','22','27','28','32','33','38','39','43','44','49');
				for($i = 0; $i < 7; $i++) {
					if(in_array($kjHao[$i], $a)) {
						$color = 'red';
					} elseif(in_array($kjHao[$i], $b)) {
						$color = 'blue';
					} elseif(in_array($kjHao[$i], $c)) {
						$color = 'green';
					} else {
						$color = 'and';
					}
					if($i == 6) {
						echo "<li class='and'><span>and</span></li>";
					}
					?>
							<li class="<?=$color?>"><span><?=$kjHao[$i]?></span></li>
					<?php } ?>
					</ul>
				</div>
				<div class="louhao">
					<a class="wanfa" href="javascript:;" onClick="future()" >走势分析</a>
				</div>
			</div>
	
	  </div>
	  	</div>
	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();" >开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
	
</div>

 <?php }else if($types[$this->type]['type']==8) { //快乐8?>
				<div class="lottery_num left">
				<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
				<div class="lottery_num_box">
					<ul id="num" class="k8" style="width: 200px;">
					<li style="top: 0px;"><span><?=$kjHao[0]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[1]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[2]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[3]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[4]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[5]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[6]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[7]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[8]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[9]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[10]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[11]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[12]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[13]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[14]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[15]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[16]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[17]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[18]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[19]?></span></li>
					</ul>
				</div>
				<div class="louhao">
					<a class="wanfa"  href="javascript:;" onClick="future()" >走势分析</a>
				</div>
			</div>
	
	  </div>
	  	</div>
	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="bjkjjl();" >开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
	
</div>

<?php }else if($types[$this->type]['type']==4) { //快乐十分?>
				<div class="lottery_num left">
				<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
				<div class="lottery_num_box">
					<ul id="num" class="klsf">
					<?php if (isset($kjHao[0])>0){?>
					<li style="top: 0px;"><span><?=$kjHao[0]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[1]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[2]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[3]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[4]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[5]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[6]?></span></li>
					<li style="top: 0px;"><span><?=$kjHao[7]?></span></li>
					<?php }?>
					</ul>
				</div>
				<div class="louhao">
					<a class="wanfa" href="/zst/klsf.php?typeid=<?= $this->type ?>"  target="_blank">走势分析</a>
				</div>
			</div>
	
	  </div>
	  	</div>
	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();">开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
	
</div>

	  <?php }else if($types[$this->type]['type']==6) { //PK10?>
      	<div class="lottery_num left">
				<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
				<div class="lottery_num_box">
					<ul id="num" class="pk10_ul">
					<?php if (isset($kjHao[0])>0){?>
					<li class="car<?=$kjHao[0]?>" ><span></span></li>
					<li class="car<?=$kjHao[1]?>" ><span></span></li>
					<li class="car<?=$kjHao[2]?>" ><span></span></li>
					<li class="car<?=$kjHao[3]?>" ><span></span></li>
					<li class="car<?=$kjHao[4]?>" ><span></span></li>
					<li class="car<?=$kjHao[5]?>" ><span></span></li>
					<li class="car<?=$kjHao[6]?>" ><span></span></li>
					<li class="car<?=$kjHao[7]?>" ><span></span></li>
					<li class="car<?=$kjHao[8]?>" ><span></span></li>
					<li class="car<?=$kjHao[9]?>" ><span></span></li>
					</ul>
					<?php }?>
				</div>
				<div class="louhao">
					<a class="wanfa"  href="javascript:;" onClick="future()" >走势分析</a>
				</div>
			</div>
			</div>
	</div>
			
	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();" >开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
	
</div>
      <?php }else if($types[$this->type]['type']==2) { //11选5?>
				<div class="lottery_num left">
				<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
				<div class="lottery_num_box">
					<ul id="num" style="width: 250px;">
					<li><span style="top: 0px;"><?=$kjHao[0]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[1]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[2]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[3]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[4]?></span></li>
					</ul>
				</div>
				<div class="louhao">
					<a class="wanfa" href="/zst/11x5.php?typeid=<?= $this->type ?>"  target="_blank">走势分析</a>
				</div>
			</div>
	
	  </div>
	  	</div>
	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();" >开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
</div>
<?php }else if($types[$this->type]['type']==20) { //双色球?>
	<div class="lottery_num left">
		<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
		<div class="lottery_num_box">
			<ul id="num"  class="ssq"  style="width: 250px;">
				<li><span style="top: 0px;"><?=$kjHao[0]?></span></li>
				<li><span style="top: 0px;"><?=$kjHao[1]?></span></li>
				<li><span style="top: 0px;"><?=$kjHao[2]?></span></li>
				<li><span style="top: 0px;"><?=$kjHao[3]?></span></li>
				<li><span style="top: 0px;"><?=$kjHao[4]?></span></li>
				<li> <span style="top: 0px;"><?=$kjHao[5]?></span></li>
				<li class="ls"><span style="top: 0px;"><?=$kjHao[6]?></span></li>
			</ul>
		</div>
		<div class="louhao">
			<a class="wanfa" href="/zst/shuangseqiu.php?typeid=<?= $this->type ?>"  target="_blank">走势分析</a>
		</div>
	</div>
	  </div>
	  	</div>
	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();">开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
</div>
<?php }else if($types[$this->type]['type']==21) { //大乐透?>
	<div class="lottery_num left">
		<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
		<div class="lottery_num_box">
			<ul id="num" class="ssq"   style="width: 250px;">
				<li><span style="top: 0px;"><?=$kjHao[0]?></span></li>
				<li><span style="top: 0px;"><?=$kjHao[1]?></span></li>
				<li><span style="top: 0px;"><?=$kjHao[2]?></span></li>
				<li><span style="top: 0px;"><?=$kjHao[3]?></span></li>
				<li><span style="top: 0px;"><?=$kjHao[4]?></span></li>
				<li class="ls"><span style="top: 0px;"><?=$kjHao[5]?></span></li>
				<li class="ls"><span style="top: 0px;"><?=$kjHao[6]?></span></li>
			</ul>
		</div>
		<div class="louhao">
			<a class="wanfa" href="/zst/daletou.php?typeid=<?= $this->type ?>" target="_blank">走势分析</a>
		</div>
	</div>
	  </div>
	  	</div>
	<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();">开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai">合买中心</a></li>
			</ul>
		</div>
</div>
<?php }else{  ?>
	<div class="lottery_num left">
				<p class="lottery_history_issue">第 <span><?=$lastNo['actionNo']?></span> 期</p>
				<div class="lottery_num_box">
					<ul id="num" style="width: 250px;">
					<li><span style="top: 0px;"><?=$kjHao[0]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[1]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[2]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[3]?></span></li>
					<li><span style="top: 0px;"><?=$kjHao[4]?></span></li>
					</ul>
				</div>
				<div class="louhao">
					<a class="wanfa" href="/zst?typeid=<?= $this->type ?>" target="_blank">走势分析</a>
				</div>
		</div>	
			</div>
	</div>
		<div class="tools left">
		<div class="yu_e">
			<div class="toggle-money show-money">
				余额 <span id="refff" class="money"><?=$this->user['coin']?></span>元
			</div>
			<div class="toggle-money hide-money">
				余额 <span class="money"><b>************</b></span>元
			</div>
			<a href="javascript:;" class="shuaxin" id="refreshmoney" title="刷新余额">
				<i class="ic-refresh"></i>
			</a> 
			<a href="javascript:;" title="隐藏余额">
				<i class="ic-unlook"></i>
			</a>
		</div>
		<div class="toolslist">
			<ul class="ctqc">
				<li><a class="recharge" href="javascript:;" onclick="czpay();">充值</a></li>
				<li><a class="drawings" href="javascript:;" onclick="topay();">提款</a></li>
			</ul>
			<ul class="twbb">
				<li><a class="touzhu" href="javascript:;" onclick="kjjl();" >开奖记录</a></li>
				<li><a class="wanfa" href="/index.php/lottery/hemai" >合买中心</a></li>
			</ul>
		</div>
	
</div>
<?php }?>
   			
</div>
 	<!-- header end -->
<script type="text/javascript">
$(function(){
	window.S=<?=json_encode($diffTime>0)?>;
	window.KS=<?=json_encode($kjDiffTime>0)?>;
	window.kjTime=parseInt(<?=json_encode($kjdTime)?>);
	
	if($.browser.msie){
		//window.diffTime=<?=$diffTime?>;
		setTimeout(function(){
			gameKanJiangDataC(<?=$diffTime?>);
		}, 1000);
	}else{
		setTimeout(gameKanJiangDataC, 1000, <?=$diffTime?>);
	}
	<?php if($kjDiffTime>0){ ?> 
		if($.browser.msie){
		setTimeout(function(){
			setKJWaiting(<?=$kjDiffTime?>);
		}, 1000);
		}else{
			setTimeout(setKJWaiting, 1000, <?=$kjDiffTime?>);
		}
	<?php } ?> 
	
	<?php if(!$kjHao){ ?> 
		loadKjData();
	<?php } ?> 
});
function kjjl(){
	layer.open({
	  type: 2,
	  area: ['800px', '550px'],
	  zIndex:1999,
	  //fixed: false, //不固定
	  title:'开奖记录',
	  scrollbar: false,//屏蔽滚动条
	  //maxmin: true,
	  content:'/index.php/index/historyList/<?=$this->type?>'
	});
	return false;
}
function bjkjjl(){
	layer.open({
	  type: 2,
	  area: ['850px', '600px'],
	  zIndex:1999,
	  //fixed: false, //不固定
	  title:'开奖记录',
	  scrollbar: false,//屏蔽滚动条
	  //maxmin: true,
	  content:'/index.php/index/historyList/<?=$this->type?>'
	});
	return false;
}
</script>